// Renders an vCalendar for hCalendar objects.
// version 1.0
// 2006-12-31
// Copyright (c) 2006, Calvin Yu
//
// --------------------------------------------------------------------
//
// This is a Tails script.
//
// To install, you need Tails: http://blog.codeeg.com/tails-firefox-extension/
// Then restart Firefox and revisit this script and click on 'Install'.
//
// To uninstall, go to Tools/Manage Tails Scripts...,
// select "Add to Calendar", and click Uninstall.
//
// --------------------------------------------------------------------
//
// ==TailsScript==
// @name          Add to Calendar
// @namespace     http://blog.codeeg.com/tails
// @description   Renders an vCalendar for hCalendar objects.
// @include       hcalendar
// ==/TailsScript==

getData: function() {
  return {fileName: 'event.ics', contents: this.object.toICalendar()};
}